package com.hlpedu.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class PageController {
    @RequestMapping("/showPage")
    public String showPage(){
//        return "/WEB-INF/pages/success.jsp";
        return "success";
    }
//    @RequestMapping(value = "/showMessage",
//            produces = "text/plain;charset=UTF-8")
    @RequestMapping("/showMessage")
    @ResponseBody
    public String showMessage(){
        return "乾坤未定，你我皆是黑马。。。哈哈哈";
    }
    //    @RequestMapping(value = "/showMsg",
//            produces = "text/plain;charset=UTF-8")
    @RequestMapping("/showMsg")
    @ResponseBody
    public String shoeMsg(){
        return "乾坤未定，你我皆是黑马。。。哈哈哈";
        }
    }

